package com.cg.design.graphicdesignpattern.adapter;

/**
 * 类适配器模式（使用继承的适配器）
 *
 * @program: LeetCode->PrintBanner
 * @description: 类适配器模式（使用继承的适配器）
 * @author: cg
 * @create: 2022-03-17 21:28
 **/
public class PrintBanner1 extends Banner implements Print {

    public PrintBanner1(String name) {
        super(name);
    }

    @Override
    public void printWeak() {
        showWithParen();
    }

    @Override
    public void printStrong() {
        showWithAster();
    }
}
